package com.javasm.springboot3.entity;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author：longjinyi
 * @Version：1.0
 * @Date：2021/12/27-21:25
 * @Since:jdk1.8
 * @Description:
 */
@Data
@Component
//只要是读取配置文件里面的对象，@ConfigurationProperties注解都要加前缀
@ConfigurationProperties("li")
public class Student {

    private String girlFriend;

    private String child;
}
